<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let promise = Promise.resolve(11);
      let p = promise.then(
        (res) => {
          return res;
        },
        (err) => {
          return "err 111";
        }
      );
      p.then((res) => {
        console.log(res, "222");
      }).catch((err) => {
        console.log(err, "err 222");
      });
    </script>
  </body>
</html>
